package org.syntaxlisp.core.element;

/**
 * @author HuangYijun
 * @data 2023-02-03 15:38
 **/
public class BaseElement extends SyntaxLispElement {

    public BaseElement(String val) {
        super(SyntaxLispElementType.BASE, val);
    }

    @Override
    public SyntaxLispElement copy() {
        return (new BaseElement(getVal())).copyMatchPropertiesAndReturn(this);
    }

    @Override
    public boolean equalsTo(SyntaxLispElement o) {
        return getVal().equals(o.getVal());
    }
}
